.class public Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;
.super Lcn/cheln/support/adapter/MapAdapter;


# instance fields
.field private a:Lcn/cheln/support/images/a;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcn/cheln/support/adapter/d;)V
    .locals 1

    invoke-direct {p0, p1, p2}, Lcn/cheln/support/adapter/MapAdapter;-><init>(Landroid/content/Context;Lcn/cheln/support/adapter/d;)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    new-instance v0, Lcn/cheln/support/images/a;

    invoke-direct {v0, p1}, Lcn/cheln/support/images/a;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;->a:Lcn/cheln/support/images/a;

    return-void
.end method

.method public static a()V
    .locals 0

    return-void
.end method


# virtual methods
.method protected a(Lcn/cheln/explorer/beans/FileInfo;)Lcn/cheln/support/images/ThumbnailBase;
    .locals 2

    new-instance v0, Lcn/cheln/support/images/ThumbnailBase;

    iget-object v1, p1, Lcn/cheln/explorer/beans/FileInfo;->path:Ljava/lang/String;

    invoke-direct {v0, v1}, Lcn/cheln/support/images/ThumbnailBase;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->b()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcn/cheln/support/images/ThumbnailBase;->a(Z)V

    return-object v0
.end method

.method protected a(Landroid/view/View;ILjava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V
    .locals 4

    const-string v1, "iconRes"

    invoke-virtual {p4, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {p5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "-1"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;->c:Ljava/util/List;

    invoke-interface {v1, p4}, Ljava/util/List;->indexOf(Ljava/lang/Object;)I

    move-result v1

    iget-object v2, p0, Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;->d:[I

    aget v1, v2, v1

    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iget-object v3, p0, Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;->a:Lcn/cheln/support/images/a;

    move-object v0, p3

    check-cast v0, Lcn/cheln/explorer/beans/FileInfo;

    move-object v2, v0

    invoke-virtual {p0, v2}, Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;->a(Lcn/cheln/explorer/beans/FileInfo;)Lcn/cheln/support/images/ThumbnailBase;

    move-result-object v2

    invoke-virtual {v3, v2, v1}, Lcn/cheln/support/images/a;->a(Lcn/cheln/support/images/ThumbnailBase;Landroid/widget/ImageView;)V

    :cond_0
    invoke-super/range {p0 .. p5}, Lcn/cheln/support/adapter/MapAdapter;->a(Landroid/view/View;ILjava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V

    return-void
.end method
